home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.4 KB | 52 lines | [TEXT/GEOL] |
- Item 1081723 12-Jan-88 21:56
-
- From: MACDTS Macintosh Developer Technical Supt.
-
- To: WILSON6 Wilson, Dave - Personal Concepts
- D0830 Data Translation, Dev, R Burger
- MACAPP$ MacApp Interest List
-
- Sub: Color printing(or the lack of)
-
- To: D0830
-
- Dave,
-
- The problem you are having with printing PixMaps has to do with the Print
- Manager's GrafProcs that are installed into the Print Manager's GrafPort. This
- GrafPort is the one returned by PrOpenPage. The problem is that the GrafProcs
- do not know about the new Color Quickdraw PixMaps. Since the GrafPort returned
- by the Print Manager is an old-style GrafPort, the Print Shop did not expect
- applications to be performing Color Quickdraw operations in that port. This is
- a problem that will be fixed at some point in the future, but for now, there
- are only two 'safe' ways to print PixMaps.
-
- The first method is what you are using now. Because you have SetPort to
- something other than the Print Manager's GrafPort, you are using the default,
- CQD GrafProcs. These perform the depth conversion that you want. Once the
- depth conversion has been performed, you can then CopyBits the B&W bitmap back
- into the Print Manager's GrafPort. But because the Print Manager's GrafPort is
- still and old style GrafPort, remember that the destination map is BitMap, not
- a PixMap. Since the CopyBits fails, but the DrawPicture succeeds, I can only
- assume that when the DrawPicture is executed, it is performing a CopyBits from
- BitMap to Bitmap instead of PixMap to BitMap. I don't understand why this is
- the case, but if you really have it working, it must be.
-
- The second technique for printing PixMaps is to use the PostScript 'image'
- operator in combination with Quickdraw PicComments. This will allow you to
- print the PixMap in grayscale instead of just having it mapped to black and
- white, which is not very pretty. If you would like more information on this
- second technique, let me know. I have code that does it.
-
- You might also want to get a copy of Joel Wests report on this problem, I
- know he offered it to anyone who was interested.
-
- I hope this helps, and if you still have questions, let me know.
-
- ...ZZ
-
- Macintosh Developer Technical Support
- ->Scott 'ZZ' Zimmerman (1/12/88 Link 8)
-
-
-